<?php include $this->header();?>
<?php if(false) {?>
<link rel="stylesheet" rev="stylesheet" href="../../../images/admincp/style.css" type="text/css" media="all" />
<?php }?>
<div class="wrap">
<form method="post" enctype="application/x-www-form-urlencoded" target="_self" onsubmit="return Validator.Validate(this)">
<div class="bd p1 mt">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="rank list">
    <tr class="th">
        <td width="25" align="center" valign="middle"><input type="checkbox" name="checkbox" id="checkbox" title="全选" /></td>
        <td width="35" align="center" valign="middle"><label for="checkbox">序号</label></td>
        <td width="50" align="center" valign="middle">排序</td>
        <td width="120" align="center">角色</td>
        <td width="35" align="center">禁用</td>
        <td align="center">描述</td>
        <td width="100" align="center">操作</td>
    </tr>
    <?php foreach($roles as $item) {?>
    <tr>
        <td align="center" valign="middle"><input type="checkbox" name="itemcheck[<?=$item['role_id']?>]" id="itemcheck" /></td>
        <td align="center" valign="middle"><?=$item['role_id']?></td>
        <td align="center" valign="middle"><input name="sortItem[<?=$item['role_id']?>]" type="text" id="sort" size="3" value="<?=$item['role_order']?>" style="text-align:center; width:26px;" class="text-box" /></td>
        <td align="center"><?=$item['role_name']?></td>
        <td align="center"><?php if($item['role_disabled']){?><span class="red">是</span><?php } else {?><span class="green">否</span><?php } ?></td>
        <td><?=$item['role_desc']?>&nbsp;</td>
        <td align="center">[<a href="<?=UE_Url::make("$app/$ctl/edit/{$item['role_id']}")?>">编辑</a>] [<a href="<?=UE_Url::make("$app/$ctl/del/{$item['role_id']}")?>" onclick="return confirm('确定要删除该角色吗？')">删除</a>]</td>
    </tr>
    <?php }?>
</table>
</div>
<div class="mt bat bd">
  <table width="100%" cellspacing="0" cellpadding="0" border="0" class="batopt">
      <tr class="">
        <td width="30" align="center" class="font12_title">操作</td>
        <td width="860" class="font12_title">
            <div align="left">
              <select name="optype" class="">
                <option value="sort">排序</option>
                <option value="disable">禁用</option>
                <option value="enable">启用</option>
                <option value="del">删除</option>
              </select>
              <input type="submit" name="submit" class="btn" value="确定" onclick="return confirm('确定要执行该操作吗？')">
             <span class="note">（该操作为批量处理操作，操作前，请在选择列上打钩）</span>           
           </div>
        </td>
      </tr>
  </table>
</div>
</form>
</div>
<?php include $this->footer();?>